;编写一个利用查表的方法实现把1位十六进制数转换为对应ASCII码的程序

assume cs:code,ds:data

data segment

number dw 8h
string db "0123456789ABCDEF",0

data ends

code segment

start:
				mov ax, data
				mov ds, ax
				mov ax, offset string
				mov si, ax
				mov ax, number
				call convert
				mov ax, 004ch
				int 21
	
convert proc
				add ax, si
				mov di, ax
				xor ax, ax 
				mov al, [di]
				ret
convert endp


code ends

	end start